package com.yqz.sys.controller;

import com.yqz.common.base.controller.BaseController;
import com.yqz.sys.form.CompDepartForm;
import com.yqz.sys.query.CompDepartQuery;
import com.yqz.sys.service.CompDepartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("comp/depart")
public class CompDepartController extends BaseController<CompDepartQuery, CompDepartForm> {

    @Autowired
    private CompDepartService departService;

    public CompDepartController(CompDepartService departService) {
        super(departService);
    }

    @GetMapping("list.do")
    public Object list(CompDepartQuery query){
        return departService.queryAll(query);
    }

}
